package com.study.app.hr;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author sjw
 * @className AutoConfiguration
 * @date 2021/4/7 8:37
 * @description: TODO
 */
@Configuration
@ConditionalOnProperty(prefix = "hr", name = "enable", havingValue = "true")
@ComponentScan(basePackages = "com.study.app.hr")
public class AutoConfiguration {
    public AutoConfiguration(){
        System.out.println("hr hr hr");
    }
}
